/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package Vue;

import Modele.Contact;

/**
 *this class Assemble the Menu Panel and Form Panel by calling a new ContentPane
 * @author Bakalian
 */
public class SeeForm {
    private ContentPane myPanel;
    private Menu myMenu;
    private Form myForm;
/**
*creates the window withthe menu and the form in the presentation panel
 */
    public SeeForm(Contact c,int mode) {
        myMenu=new Menu();
        myForm=new Form(c,mode);
        myForm.getBackground().setAutoscrolls(true);
        //myForm.getFormBackground().setSize(myForm.getFormBackground().getSize());
        this.myPanel = new ContentPane(myMenu.getMenuBackground(),myForm.getBackground());
        this.myPanel.getMyWholePanel().setAutoscrolls(true);
    }

    public Form getMyForm() {
        return myForm;
    }
    
}
